package com.exam.service.impl;


import com.exam.mapper.PaperMapMapper;
import com.exam.pojo.PaperMap;
import com.exam.service.PaperMapService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class PaperMapServiceImpl implements PaperMapService {
    @Resource
    PaperMapMapper paperMapMapper;

    @Override
    public int add(PaperMap paperMap) {
        return paperMapMapper.insert(paperMap);
    }

    @Override
    public int delete(Integer paperId, Integer questionType, Integer questionId) {
        return paperMapMapper.delete(new PaperMap(paperId,questionType,questionId));
    }
}
